package com.zzq;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

@RestController
@SpringBootApplication
public class ScRocketmqApplication {

    public static void main(String[] args) {
        SpringApplication.run(ScRocketmqApplication.class, args);
    }

    @GetMapping(value = "/")
    public String index() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return "ScRocketmqApplication:" + sdf.format(new Date());
    }
}
